package com.brp.vo;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Auther: dy
 * @Date: 2022/3/16 - 03 - 16 - 15:46
 * @Description: com.brp.vo
 * @version: 1.0
 */
@Component("resultVo")
@Data
@NoArgsConstructor
public class ResultVo<T> {
    private Integer code = 0;
    private String msg = "";
    private Integer count;
    private List<T> data;

    public ResultVo(Integer count, List<T> data) {
        this.count = count;
        this.data = data;
    }
}
